package com.demo.gateway.userservice.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public class BasicService<T> {

    @Autowired
    BaseMapper<T> mapper;

    public T get(Serializable id) {
        return mapper.selectById(id);
    }

    public List<T> selectBatchIds(Collection<? extends Serializable> var1) {
        return mapper.selectBatchIds(var1);
    }
}
